package com.bleeth.fx.component;

import com.bleeth.fx.meta.ActionFunction;
import javafx.scene.control.MenuItem;
import javafx.scene.control.SeparatorMenuItem;
import lombok.Builder;


/**
 * @author Sakura
 * @version 1.0
 * @date 2021-11-13 22:17
 **/
@Builder
public class MMenuItem {

    private ActionFunction action;

    private String text;

    private String icon;


    public MenuItem make() {
        MenuItem item = new MenuItem();
        item.setText(text);
        return item;
    }


    public SeparatorMenuItem separatorMake() {
        return null;
    }


}
